import http from '@/utils/request.js';

// 任务追踪进度条
export const getSelectWorkTracks = (data) => {
	// return http.get('/repair/maintain/malfunction/log/selectWorkTracks',data);
	return http.request({
		url: '/repair/maintain/malfunction/log/selectWorkTracks',
		method: 'get',
		data,
	});
};

// 保养统计列表
export const getPlanContentStatistical = (data) => {
	// return http.post('/repair/plan/content/statistical/getPlanContentStatisticalDetail', data, true);
	return http.request({
		url: '/repair/plan/content/statistical/getPlanContentStatisticalDetail',
		method: 'post',
		data,
		textJson: true,
	});
};

// 获取距离上次保养时间

export const lastMaintenance = (data) => {
	// return http.get('/repair/maintain/plan/content/simple/detail', data);
	return http.request({
		url: '/repair/maintain/plan/content/simple/detail',
		method: 'get',
		data,
	});
};